package org.jsrml.core.supplier.qo;

import org.jsrml.common.persistence.BaseQO;
import org.jsrml.common.persistence.query.QueryCondition;
import org.jsrml.common.persistence.query.QueryConditionType;
import org.jsrml.common.persistence.query.QueryConfig;

@QueryConfig(daoBeanId="vendorService")
public class VendorQO extends BaseQO<String> {

	@QueryCondition(name = "info.authAccountId")
	private String authAccountId;
	
	@QueryCondition(name="info.vendorCode",type=QueryConditionType.LIKE_ANYWHERE)
	private String code;
	
	@QueryCondition(name="info.vendorName",type=QueryConditionType.LIKE_ANYWHERE)
	private String name;

	/**
	 * 供方简称
	 */
	@QueryCondition(name="info.shortName",type=QueryConditionType.LIKE_ANYWHERE)
	private String shortName;
	
	/**
	 * 供方类别，0：供应商、1：外协商
	 */
	
	@QueryCondition(name="info.supplyType")
	private String supplyType;
	
	
	/**
	 *准入状态，0：准入，1：不准入 （新供方准入资质、合格供方评审）
	 */
	@QueryCondition(name="vendorStatus.isAcess")
	private Integer isAcess;
	
	/**
	 *供方级别，0；特级，1：1级，2：2级，3：3级
	 */
	@QueryCondition(name="vendorStatus.level")
	private Integer level;
	
	
	/**
	 *是否关闭，0：启用，1：停用
	 */
	@QueryCondition(name="vendorStatus.isClose")
	private Integer isClose;
	
	@QueryCondition(name = "status.remove")
	private Boolean remove;
	
	
	@QueryCondition(name="address.province")
	private String province;
	
	@QueryCondition(name="address.city")
	private String city;
	
	@QueryCondition(name="address.area")
	private String area;
	
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getRemove() {
		return remove;
	}

	public void setRemove(Boolean remove) {
		this.remove = remove;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getSupplyType() {
		return supplyType;
	}

	public void setSupplyType(String supplyType) {
		this.supplyType = supplyType;
	}

	public Integer getIsAcess() {
		return isAcess;
	}

	public void setIsAcess(Integer isAcess) {
		this.isAcess = isAcess;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getIsClose() {
		return isClose;
	}

	public void setIsClose(Integer isClose) {
		this.isClose = isClose;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getAuthAccountId() {
		return authAccountId;
	}

	public void setAuthAccountId(String authAccountId) {
		this.authAccountId = authAccountId;
	}
	
}
